package controllers;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import models.CustomFieldError;
import models.Rubro;
import models.User;
import play.Logger;
import play.data.binding.Binder;
import play.data.validation.Error;
import play.data.validation.Validation;
import play.db.Model;
import play.mvc.Before;
import play.mvc.Http;
import play.mvc.Scope;
import play.templates.Template;
import play.templates.TemplateLoader;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class ArcadiaCRUD extends CRUD {

	@Before
	static void setConnectedUser() {
		if (Security.isConnected()) {
			User user = Security.getConnected();
			renderArgs.put("user", user.username);
		}
	}

}
